package net.zjitc.interfaces.charge;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/22 11:03
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("1--公交车\n2--出租车");
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        Car car=CarFactory.getCar(a);
        car.driver();
        Charge charge=ChargeFactory.getCharge(a);
        charge.fee();
        Cinema cinema=new Cinema();
        cinema.fee();
    }
}
